<%= form_for(@teacher) do |f| %>
  <% if @teacher.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@teacher.errors.count, "error") %> prohibited this teacher from being saved:</h2>

      <ul>
      <% @teacher.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label 'Nombres' %><br />
    <%= f.text_field :names %>
  </div>
  <div class="field">
    <%= f.label 'Apellidos' %><br />
    <%= f.text_field :lastnames %>
  </div>
  <div class="field">
    <%= f.label 'Tipo de documento' %><br />
    <%= f.select :type_id_card, eia_card_types %>
  </div>
  <div class="field">
    <%= f.label 'Número documento'  %><br />
    <%= f.text_field :id_card %>
  </div>
  <div class="field">
    <%= f.label 'Unidad acádemica' %><br />
    <%= f.select :id_academic_unit, eia_academic_units %>
  </div>
  <div class="field">
    <%= f.label 'Dedicación' %><br />
    <%= f.select :id_dedication, eia_dedications %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
